
public class Sommet {

	private int _numSommet,_nbrVois,_demande;
	private int _distance;
	private boolean _visited;
	public Liste_arete _liste;
    
	
	public Sommet(int numSommet, int nbrVois, int distance)
    {	
		_numSommet = numSommet;
		_nbrVois = nbrVois;
		_demande = 0;
		_distance = distance;
		set_visited(false);
		this._liste = new Liste_arete();
	}    

	@Override
	public String toString() {
		return "\n[_numSommet=" + _numSommet + ", _nbrVois=" + _nbrVois
				+ ", _demande=" + _demande + ", _distance=" + _distance+ "]"
			    + _liste ;
	}

	public Sommet() {
		super();
	}

	public int get_numSommet() {
		return _numSommet;
	}

	public void set_numSommet(int _numSommet) {
		this._numSommet = _numSommet;
	}

	public int get_nbrVois() {
		return _nbrVois;
	}

	public void set_nbrVois(int _nbrVois) {
		this._nbrVois = _nbrVois;
	}

	public int get_demande() {
		return _demande;
	}

	public void set_demande(int _demande) {
		this._demande = _demande;
	}

	public int get_distance() {
		return _distance;
	}

	public void set_distance(int _distance) {
		this._distance = _distance;
	}

	public Liste_arete get_liste() {
		return _liste;
	}

	public void set_liste(Liste_arete _liste) {
		this._liste = _liste;
	}

	public void set_visited(boolean _visited) {
		this._visited = _visited;
	}

	public boolean is_visited() {
		return _visited;
	}

}
